/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.krossk.servletcontextListeners;

import br.com.krossk.jspControllers.Controller;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 *
 * @author HENRIQUEAP
 */
public class ControllerContextListener implements ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        ServletContext sc  = sce.getServletContext();
        Controller.initController();
    }

    public void contextDestroyed(ServletContextEvent sce) {
        ServletContext sc  = sce.getServletContext();
        Controller.destroyController();
    }

}
